﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>设计流程列表</title>
<style>
     th{border-bottom:2px solid #ccc;}
     td{border-bottom:1px solid #ccc; text-align:center}
	 h1{text-align:center}
	 tr td:last-child {text-align:left;width:300px;}
	 tr td:last-child a:first-child{margin-left:50px}
</style>
<script>
   
</script>

</head>
<body>
   <h1>设计流程列表</h1>
   <c:if test="${ispower}">
     <a href="/baoxiao/web/admin/adddesign">新增流程设计</a>
   </c:if>
   <table align="center" width="60%" cellspacing="0px">
       
       <tbody>
          <tr>
              <th>编号</th>
              <th>类型</th>
              <th>名字</th>
			  <th>租户</th>
			  <th>申请时间</th>
              <th>操作 <a href="/baoxiao/web/admin/adddesign">新增记录</a></th>
       </tr>
       
    <c:forEach var="a" items="${list}">
        <tr>
             <td>${a.id}</td>
             <td>${a.category}</td>
			 <td>${a.name}</td>
			 <td>${a.tenantId}</td>
             <td><fmt:formatDate value="${a.deploymentTime}" pattern="yyyy/MM/dd HH:mm"/> </td>
             <td>
			 <a href="/baoxiao/web/admin/deldesign?deployid=${a.id}">删除</a>
             </td>
       </tr>
       </c:forEach>   
   </tbody>
   </table>
     

</body></html>